
package com.caration.shell.theme.inside;

import java.util.ArrayList;

import android.content.Context;
import android.graphics.Bitmap;

import com.caration.shell.ShellModel;

public class ThemeManager {
	
	 public static final String ACTION_APPLY_THEME = "com.tsf.shell.APPLY_THEME";
	  private static ThemeManager mInstance;
	  private Context mContext;
	  private Bitmap mIconMaskThemeBitmap;
	  private Bitmap mIconThemeBitmap;
	  private float mIconThemeScale;
	  private ShellModel mModel;
//	  private ThemeDescription mSystemThemeDescription;
	  private ThemeConfiguration mThemeConfiguration;
//	  private ThemeDescription mThemeDescription;
	  private ArrayList mThemeDescriptionList;

	  
	  public ThemeManager(Context paramContext, ShellModel paramShellModel)
	  {
	    mInstance = this;
	    this.mModel = paramShellModel;
	    this.mContext = paramContext;
//	    init();
//	    initBrocastReceiver();
	  }
	  
    public static void parseIconConfig(ThemeConfiguration config, String icon) {
        // Object localObject2 = null;
        // if ((icon == null) || (icon.equals(""))) {
        // config.iconPackage = "com.caration.shell";
        // config.iconFile = "null";
        // return;
        // }
        // while (true) {
        // int j;
        // try {
        // String[] arrayOfString = icon.split(",");
        // int i = arrayOfString.length;
        // j = 0;
        // Object localObject3 = null;
        // Object localObject1 = null;
        // Object localObject4 = null;
        // if (j < i)
        // continue;
        // config.iconPackage = localObject1;
        // config.iconFile = localObject3;
        // config.maskPackage = localObject2;
        // config.maskFile = localObject4;
        // break;
        // String str2 = arrayOfString[j];
        // if (!str2.contains("icon:"))
        // continue;
        // int k = 5 + str2.indexOf("icon:");
        // int n = str2.indexOf("/");
        // String str1 = str2.substring(k, n);
        // String str4 = str2.substring(n + 1);
        // break label201;
        // int m = 5 + str2.indexOf("mask:");
        // int i1 = str2.indexOf("/");
        // String str3 = str2.substring(m, i1);
        // str2 = str2.substring(i1 + 1);
        // Object localObject5 = str2;
        // } catch (Exception localException) {
        // }
        // break;
        // label201: j++;
        // }
    }
}
